anchor.diff:      Scheme = case MochiReq:get_header_value(XSsl) of
           "on" -> "https";
           _ ->
  -            XProto = couch_config:get("httpd", "x_forwarded_proto", "X-Forwarded-Proto"),
  +            XProto = couch_config:get("httpd", "x_forwarded_proto",
  +                "X-Forwarded-Proto"),
               case MochiReq:get_header_value(XProto) of
                   % Restrict to "https" and "http" schemes only
                   "https" -> "https";
                   _ -> "http"
               end
       end,
  -    Customer = cloudant_util:customer_name(MochiReq:get_header_value("X-Cloudant-User"),
  -                                       Host),
  +    Customer = cloudant_util:customer_name(
  +        MochiReq:get_header_value("X-Cloudant-User"),
  +        Host),
       CustomerRegex = ["^/", Customer, "[/%2F]+"],
       NewPath = re:replace(Path, CustomerRegex, "/"),
       Scheme ++ "://" ++ Host ++ NewPath.
  
positive.code: 
  start_chunked_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers) ->
      couch_stats_collector:increment({httpd_status_codes, Code}),
      Resp = MochiReq:respond({Code, Headers ++ server_header() ++ chttpd_auth:cookie_auth_header(Req, Headers), chunked}),
      case MochiReq:get(method) of
      'HEAD' -> throw({http_head_abort, Resp});
      _ -> ok
  
negative.code: 
  start_response_length(#httpd{mochi_req=MochiReq}=Req, Code, Headers, Length) ->
      couch_stats_collector:increment({httpd_status_codes, Code}),
      Resp = MochiReq:start_response_length({Code, Headers ++ server_header() ++
          chttpd_auth:cookie_auth_header(Req, Headers), Length}),
      case MochiReq:get(method) of
      'HEAD' -> throw({http_head_abort, Resp});
      _ -> ok
  