This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
Overwrite Connection: close header, don't append
Carl Jackson
12 years ago
parent
836cb84fdc
commit
9641eb21e3
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
graceful/middleware.go
+ 1
- 1
graceful/middleware.go
View File
@ -59,7 +59,7 @@ func (b *basicWriter) maybeClose() {
b
.
headerWritten
=
true
b
.
headerWritten
=
true
select
{
select
{
case
<-
kill
:
case
<-
kill
:
b
.
ResponseWriter
.
Header
(
)
.
Add
(
"Connection"
,
"close"
)
b
.
ResponseWriter
.
Header
(
)
.
Set
(
"Connection"
,
"close"
)
default
:
default
:
}
}
}
}
Write
Preview
Loading…
Cancel
Save