File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,10 @@ impl Uploader {
145
145
let content_length = body. len ( ) as u64 ;
146
146
let content = Cursor :: new ( body) ;
147
147
let mut extra_headers = header:: HeaderMap :: new ( ) ;
148
- extra_headers. insert ( header:: CACHE_CONTROL , CACHE_CONTROL_README . parse ( ) . unwrap ( ) ) ;
148
+ extra_headers. insert (
149
+ header:: CACHE_CONTROL ,
150
+ CACHE_CONTROL_IMMUTABLE . parse ( ) . unwrap ( ) ,
151
+ ) ;
149
152
self . upload (
150
153
app. http_client ( ) ,
151
154
& path,
@@ -168,10 +171,7 @@ impl Uploader {
168
171
let content_length = readme. len ( ) as u64 ;
169
172
let content = Cursor :: new ( readme) ;
170
173
let mut extra_headers = header:: HeaderMap :: new ( ) ;
171
- extra_headers. insert (
172
- header:: CACHE_CONTROL ,
173
- CACHE_CONTROL_IMMUTABLE . parse ( ) . unwrap ( ) ,
174
- ) ;
174
+ extra_headers. insert ( header:: CACHE_CONTROL , CACHE_CONTROL_README . parse ( ) . unwrap ( ) ) ;
175
175
self . upload (
176
176
http_client,
177
177
& path,
You can’t perform that action at this time.
0 commit comments