bin/contrib/rc-httpd: rc-httpd add system $PATH to $path; bin/contrib/rc-httpd/handlers/serve-static: try two different versions of file(1) syntax
This commit is contained in:
		
							parent
							
								
									ccbcd67836
								
							
						
					
					
						commit
						b64418b85f
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -31,7 +31,7 @@ case *.gif | |||
| case *.png | ||||
|         type=image/png | ||||
| case * | ||||
|         type=`{file -m $full_path} | ||||
|         type=`{file -i $full_path || file -m $full_path}	# GROSS | ||||
| } | ||||
| max_age=3600	# 1 hour | ||||
| echo 'HTTP/1.1 200 OK'^$cr | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stanley Lieber
						Stanley Lieber