From 1e1cdfa6c2293703799c4a2d6b86c46c0ce83465 Mon Sep 17 00:00:00 2001 From: xpnas Date: Sun, 28 Mar 2021 23:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89Ge?= =?UTF-8?q?t=E5=92=8CPOST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inotify/Sends/Products/HttpPostTemplate.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Inotify/Sends/Products/HttpPostTemplate.cs b/Inotify/Sends/Products/HttpPostTemplate.cs index 0391085..10dac71 100644 --- a/Inotify/Sends/Products/HttpPostTemplate.cs +++ b/Inotify/Sends/Products/HttpPostTemplate.cs @@ -55,19 +55,9 @@ namespace Inotify.Sends.Products return true; } - catch(Exception ex) + catch { - WebException wex = (WebException)ex; - var s = wex.Response.GetResponseStream(); - string ss = ""; - int lastNum; - do - { - lastNum = s.ReadByte(); - ss += (char)lastNum; - } while (lastNum != -1); - s.Close(); - + return false; } }