Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
perl-doh
Commits
c8b3edda
Unverified
Commit
c8b3edda
authored
Jun 29, 2018
by
Gavin Brown
Browse files
send a Content-Type header that matches the Accept header in the request
parent
5018030a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dohd
View file @
c8b3edda
...
...
@@ -230,7 +230,7 @@ sub handle_connection {
#
$connection
->
send_status_line
;
$connection
->
send_header
('
Server
',
basename
(
__FILE__
));
$connection
->
send_header
(
CONTENT_TYPE
,
$types
[
0
]);
$connection
->
send_header
(
CONTENT_TYPE
,
$request
->
header
(
CONTENT_TYPE
)
||
$types
[
0
]);
$connection
->
send_header
('
Connection
',
'
close
');
$connection
->
send_crlf
;
$connection
->
print
(
$response
->
data
);
...
...
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