mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	
						commit
						a4005e98be
					
				
					 2 changed files with 0 additions and 16 deletions
				
			
		|  | @ -32,7 +32,6 @@ class Kemal::Handler < HTTP::Handler | |||
|       route = lookup.payload as Route | ||||
|       context.request.url_params = lookup.params | ||||
|       begin | ||||
|         context.response.content_type = "text/html" | ||||
|         body = route.handler.call(context).to_s | ||||
|         context.response.print body | ||||
|         return context | ||||
|  |  | |||
|  | @ -1,15 +0,0 @@ | |||
| class Kemal::Response | ||||
|   property headers | ||||
|   property status_code | ||||
|   property content_type | ||||
| 
 | ||||
|   def initialize | ||||
|     @status_code = 200 | ||||
|     @content_type = "text/html" | ||||
|     @headers = HTTP::Headers{"Content-Type": @content_type} | ||||
|   end | ||||
| 
 | ||||
|   def content_type=(content_type) | ||||
|     @headers["Content-Type"] = content_type | ||||
|   end | ||||
| end | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue