Github user rob05c commented on a diff in the pull request:

    
https://github.com/apache/incubator-trafficcontrol/pull/786#discussion_r131970799
  
    --- Diff: traffic_ops/bin/traffic_ops_ort.pl ---
    @@ -1623,9 +1623,7 @@ sub check_lwp_response_content_length {
        my $url           = $lwp_response->request->uri;
     
        if ( !defined($lwp_response->header('Content-Length')) ) {
    -           ( $log_level >> $panic_level ) && print $log_level_str . " $url 
did not return a Content-Length header!\n";
    -           exit;
    -           return 1;
    +           return 0; # Content-Length MAY be omitted per HTTP/1.1 RFC 
7230, and in fact MUST NOT be included with a 'Transfer-Encoding: Chunked' 
header, which MUST be accepted by clients.
    --- End diff --
    
    If we still require that check. I don't think there's a way to be 
compliant, while still requiring an integrity check via `Content-Length`.
    
    It looks like the proper way to do that is via a `Content-MD5` header: 
https://tools.ietf.org/html/rfc2616#section-14.15


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to