mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 22:40:58 +03:00
Use query params too for page adding handler
This commit is contained in:
@@ -98,11 +98,7 @@ func FormatFromRest(format []openapi.Format) []entity.Format {
|
||||
|
||||
switch {
|
||||
case len(format) == 0 || (len(format) == 1 && format[0] == openapi.FormatAll):
|
||||
formats = []entity.Format{
|
||||
entity.FormatHeaders,
|
||||
entity.FormatPDF,
|
||||
entity.FormatSingleFile,
|
||||
}
|
||||
formats = entity.AllFormats
|
||||
|
||||
default:
|
||||
formats = make([]entity.Format, len(format))
|
||||
|
||||
Reference in New Issue
Block a user