Bläddra i källkod

Don't discard the "Fetch via Proxy" option

Kiskae 5 år sedan
förälder
incheckning
77f5b911b5
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      ui/form/subscription.go

+ 2 - 1
ui/form/subscription.go

@@ -44,8 +44,9 @@ func NewSubscriptionForm(r *http.Request) *SubscriptionForm {
 
 
 	return &SubscriptionForm{
 	return &SubscriptionForm{
 		URL:            r.FormValue("url"),
 		URL:            r.FormValue("url"),
-		Crawler:        r.FormValue("crawler") == "1",
 		CategoryID:     int64(categoryID),
 		CategoryID:     int64(categoryID),
+		Crawler:        r.FormValue("crawler") == "1",
+		FetchViaProxy:  r.FormValue("fetch_via_proxy") == "1",
 		UserAgent:      r.FormValue("user_agent"),
 		UserAgent:      r.FormValue("user_agent"),
 		Username:       r.FormValue("feed_username"),
 		Username:       r.FormValue("feed_username"),
 		Password:       r.FormValue("feed_password"),
 		Password:       r.FormValue("feed_password"),