Browse Source

Forward headers when proxying zone_load_multi

Thomas Dy 8 years ago
parent
commit
448c9e0ea6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rust-server/src/handler.rs

+ 1 - 1
rust-server/src/handler.rs

@@ -99,7 +99,7 @@ impl Handler for SiteHandler {
                             zones.insert("count".to_string(), Json::U64(count as u64));
                         };
 
-                        res.headers_mut().set(ContentType::json());
+                        res.headers_mut().extend(proxy_res.headers.iter());
                         res.send(json::encode(&body).unwrap().as_bytes()).unwrap();
                     }
                     else if valid {