-
Notifications
You must be signed in to change notification settings - Fork 0
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
feature: enable base64 processing #2
base: release
Are you sure you want to change the base?
Conversation
@@ -148,10 +149,6 @@ func (app *Imagor) Shutdown(ctx context.Context) (err error) { | |||
|
|||
// ServeHTTP implements http.Handler for imagor operations | |||
func (app *Imagor) ServeHTTP(w http.ResponseWriter, r *http.Request) { | |||
if r.Method != http.MethodGet && r.Method != http.MethodHead { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gamau bolehin get dan post aja?
imagor.go
Outdated
} | ||
|
||
jsonField := new(supportedJSONField) | ||
err = json.NewDecoder(r.Body).Decode(&jsonField) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ga perlu ada & lagi soalnya, soalnya udh pointer
if !isBlobEmpty(blob) && err == nil { | ||
return | ||
} | ||
} | ||
for _, loader := range loaders { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kalo base64 masuk ke sini juga? imagenya masih ""?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gw udah coba bikin loader terpisah untuk base64, tapi pas di line ini loader base64 selalu ngga ke-include. padahal pas run di awal tuh udah gw tambahin loadernya. makanya jadinya gini
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tp aman aman aja?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aman, gw test yg non base64 juga aman
No description provided.