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

feature: enable base64 processing #2

Open
wants to merge 10 commits into
base: release
Choose a base branch
from
Open

Conversation

aslamhadi
Copy link

No description provided.

@@ -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 {

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)

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 {

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 ""?

Copy link
Author

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

Choose a reason for hiding this comment

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

tp aman aman aja?

Copy link
Author

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

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.

4 participants