Will Norris
2dd79ebd20
minor cleanup of error messages
...
- used same string for logging and error response to ensure they stay in
sync
- pass through any http error status codes from remote URLs
2014-11-21 17:59:51 -08:00
Will Norris
5a4e602373
small cleanup of check304 and add more tests
...
Remove unused ResponseWriter parameter from check304, add function docs,
and add TODO for alternate Etag header values that we should handle.
Add tests for Proxy.allowed and check304.
2014-11-21 07:51:19 -08:00
Will Norris
7994cb2cf6
handle error returned when fetching remote images
2014-11-19 22:22:21 -08:00
Will Norris
dae09a8c9d
rename proxy.go and remove old data package doc
2014-11-19 22:02:34 -08:00
Will Norris
a74e590181
restructure imageproxy package
...
- move binary from imageproxy.go to cmd/imageproxy/main.go
- move proxy package up to top level
2014-07-30 18:23:43 -07:00
Will Norris
919fdfbb78
relocate package to willnorris.com/go/imageproxy
2014-06-29 14:33:56 -07:00
Will Norris
c3eda83ab5
add default VERSION string
2013-12-26 13:55:52 -08:00
Will Norris
462b70dcc2
rename to 'imageproxy' (drop 'go-' prefix)
2013-12-26 11:14:28 -08:00
Will Norris
26dde07ec0
add -version flag and goxc build config
2013-12-26 11:00:50 -08:00
Will Norris
1db6456329
add cacheDir for specifying disk cache dir
2013-12-26 08:31:52 -08:00
Will Norris
73f6357cda
rely on httpcache for response caching
2013-12-26 08:31:52 -08:00
Will Norris
ea76f2d0d8
switch to Apache 2.0 license before release
2013-12-06 17:40:35 -08:00
Will Norris
036d0c51c4
allow setting max height and width
...
This is primarily added to prevent a denial of service attack where
insanely large images are requested, eating up CPU.
2013-12-06 14:17:39 -08:00
Will Norris
402e2c7d83
switch port flag to addr to allow specifying host
2013-12-04 03:58:26 -08:00
Will Norris
deaf0abd50
add whitelist of allowed remote hosts
2013-12-04 03:12:56 -08:00
Will Norris
95fdd8b79f
add basic caching support
...
includes two implementations, a no-op NopCache and an in-memory
MemoryCache.
2013-12-04 02:55:56 -08:00
Will Norris
11441a107a
add initial (pretty naive) server implementation
2013-11-27 14:45:46 -08:00