Skip to content

Commit de2dda1

Browse files
authored
Fixed typo
1 parent 8955e75 commit de2dda1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ int handle_request(request_rec* r, const grpcbackend_config_t* config) {
232232
std::string key = header.key();
233233
std::transform(key.begin(), key.end(), key.begin(), ::tolower);
234234
if(key == "content-type")
235-
ap_set_content_type(r, apr_pstrdup(r->pool, key.c_str()));
235+
ap_set_content_type(r, apr_pstrdup(r->pool, header.value().c_str()));
236236
}
237237
if(!response.content().empty())
238238
{
@@ -253,4 +253,4 @@ int handle_request(request_rec* r, const grpcbackend_config_t* config) {
253253
}
254254

255255
return DONE;
256-
}
256+
}

0 commit comments

Comments
 (0)