Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
35be50a7
Kaydet (Commit)
35be50a7
authored
May 10, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
One test passed (testFetcher)
üst
89ffd0c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ChangeLog
ChangeLog
+2
-0
fetcher.py
inary/fetcher.py
+2
-2
No files found.
ChangeLog
Dosyayı görüntüle @
35be50a7
...
...
@@ -2,6 +2,8 @@
* util.py parçalandı:
-> ileride kod birikmesi olmasın diye (cross compiling özelliği ekleyince)
util.py dosyası parçalandı.
* One test passed:
-> fetcher testindeki errora sebeb olan yer bulundu fetcher fixe edildi.
2018-05-08 Suleyman Poyraz <zaryob.dev@gmail.com>
* Atomicoperations rahatlatılmalı:
...
...
inary/fetcher.py
Dosyayı görüntüle @
35be50a7
...
...
@@ -230,14 +230,14 @@ class Fetcher:
def
_get_http_headers
(
self
):
headers
=
[]
if
self
.
url
.
auth_info
()
and
(
self
.
url
.
scheme
()
==
"http"
or
self
.
url
.
scheme
()
==
"https"
):
enc
=
encodestring
(
'{0}:{0}'
.
format
(
self
.
url
.
auth_info
()))
enc
=
encodestring
(
'{0}:{0}'
.
format
(
self
.
url
.
auth_info
())
.
encode
(
'utf-8'
)
)
headers
.
append
((
'Authorization'
,
'Basic {}'
.
format
(
enc
)))
return
str
(
headers
)
def
_get_ftp_headers
(
self
):
headers
=
[]
if
self
.
url
.
auth_info
()
and
self
.
url
.
scheme
()
==
"ftp"
:
enc
=
encodestring
(
'{0}:{0}'
.
format
(
self
.
url
.
auth_info
()))
enc
=
encodestring
(
'{0}:{0}'
.
format
(
self
.
url
.
auth_info
())
.
encode
(
'utf-8'
)
)
headers
.
append
((
'Authorization'
,
'Basic {}'
.
format
(
enc
)))
return
str
(
headers
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment