mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Set Content-Type after call_next in Kemal::InitHandler
This commit is contained in:
		
							parent
							
								
									3e3200e23e
								
							
						
					
					
						commit
						646edb24ca
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -5,9 +5,9 @@ module Kemal | ||||||
|     INSTANCE = new |     INSTANCE = new | ||||||
| 
 | 
 | ||||||
|     def call(context) |     def call(context) | ||||||
|       context.response.content_type = "text/html" |  | ||||||
|       context.response.headers.add "X-Powered-By", "Kemal" |       context.response.headers.add "X-Powered-By", "Kemal" | ||||||
|       call_next context |       call_next context | ||||||
|  |       context.response.content_type = "text/html" | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
| end | end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue