Skip to content
#

Gin

gin logo

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

Here are 830 public repositories matching this topic...

KernelDeimos
KernelDeimos commented Nov 16, 2019

Description

Using the fetch API from WHATWG in Google Chrome, an image upload does not have Content-Type multipart/form-data. Instead, the content type is set to the MIME type (ex: image/jpeg) with a boundary parameter. Setting Content-Type explicitly to multipart/form-data should result in an error (and it does).

How to reproduce

Follow an existing image upload example from

drshrey
drshrey commented Dec 24, 2019

In .air.conf, if you set the tmp to ".", your entire current working directory will be wiped. This can be very bad especially if you haven't committed to git in a while. Can we have a warning if it is set to "." or atleast some documentation around that please?

My .air.conf that caused this:

# Working directory
# . or absolute path, please note that the directories following must be und
karimabedrabbo
karimabedrabbo commented Feb 4, 2020
/* the purpose of this function is to stick relevant user identifiers within the jwt token (as token claims)
	after having successfully authenticated (logged in). The data parameter into this function is the return value of the
	authentication handler. If you wish to use these claims within your application, it is under the key "JWT_PAYLOAD" within the gin context (Assuming you are using th

Created by Manu MA, Javier Provecho Fernandez

Released June 30, 2014

Latest release 2 months ago

Repository
gin-gonic/gin
Website
gin-gonic.com

Related Topics

framework go router
You can’t perform that action at this time.