Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support data URI scheme #43

Merged
merged 2 commits into from
Jun 14, 2016
Merged

Conversation

wata-gh
Copy link
Contributor

@wata-gh wata-gh commented Jun 9, 2016

cf. #40

data拡張子でアクセスするとdata URI schemeを返すようにしました。
@TakatoshiMaeda レビューお願いします。

@@ -72,7 +72,12 @@ func GetImageHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Param
}
logger.TrackResult("resize image", resizeStartTime)

RespondImage(w, resizedImage)
ext := ExtractExtension(ps.ByName("filename"))
Copy link
Member

@takatoshi-maeda takatoshi-maeda Jun 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ImageGetRequeststructがExtensionを持つほうが自然かなと思ったのですがどうでしょう?
以前あったものの削除し忘れも残っているので。。。 https://github.com/TakatoshiMaeda/kinu/blob/master/image_get_request.go#L15

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かにそうですね。
移動させました。

ac51bcf

@takatoshi-maeda
Copy link
Member

コメントした点以外は 👍

@wata-gh wata-gh merged commit 8017dec into tokubai:master Jun 14, 2016
@wata-gh wata-gh deleted the support_data_uri_scheme branch June 14, 2016 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants