Browse Source

mad dia passed

Namdak Tonpa 6 years ago
parent
commit
458eecd78c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/nitro.erl

+ 1 - 1
src/nitro.erl

@@ -177,7 +177,7 @@ state(Key,Value) -> erlang:put(Key,Value).
 
 
 redirect({http,Url}) -> n2o:header(<<"Location">>,nitro_conv:to_binary(Url)), nitro:state(status,302), [];
 redirect({http,Url}) -> n2o:header(<<"Location">>,nitro_conv:to_binary(Url)), nitro:state(status,302), [];
 redirect(Url) -> nitro:wire(#jq{target='window.top',property=location,args=simple,right=Url}).
 redirect(Url) -> nitro:wire(#jq{target='window.top',property=location,args=simple,right=Url}).
-header(K,V) -> nitro:context((?CTX)#cx{req=cowboy_req:set_resp_header(K,V,?CTX#cx.req)}).
+%header(K,V) -> nitro:context((?CTX)#cx{req=cowboy_req:set_resp_header(K,V,?CTX#cx.req)}).
 
 
 % Convert and Utils API
 % Convert and Utils API